home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2005 March
/
Gamestar_71_2005-03_dvd.iso
/
Dema
/
willofsteel_demo.exe
/
{app}
/
Data
/
gui
/
menu.gui
< prev
next >
Wrap
Text File
|
2004-12-18
|
6KB
|
219 lines
-- --------------------------------------------------- COMPONENT ID
ID_BUTTON = 0
ID_RADIO_BUTTON = 1
ID_CHK_BOX = 2
ID_EDIT_BOX = 3
ID_LIST = 4
ID_TEXT_BOX = 5
ID_PICTURE_BOX = 6
ID_FRAME = 7
ID_SCROLL = 8
ID_PROGRESSBAR = 9
ID_SLIDEMENU = 10
ID_COMPASS = 11
ID_MINIMAP = 12
ID_SELECTIONBOX = 13
ID_TABLECC = 14
ID_POOLFRAME = 15
ID_SOLDIERPOOL_ELEM = 16
ID_VEHICLEPOOL_ELEM = 17
-- --------------------------------------------------- PGUITextBox type
PGUI_SINGLELINE_TEXT = 0
PGUI_MULTILINE_TEXT = 1
PGUI_FILENAME = 2
PGUI_SIGNED_INTEGER = 3
PGUI_UNSIGNED_INTEGER = 4
PGUI_FLOAT = 5
-- --------------------------------------------------- MESAGE ID
PGUI_1STBUTTON_DOWN = 0
PGUI_1STBUTTON_UP = 1
PGUI_1STBUTTON_CLCK = 2
PGUI_1STBUTTON_DBLCLCK = 3
PGUI_1STBUTTON_DRAG = 4
PGUI_1STBUTTON_DROP = 5
PGUI_2NDBUTTON_DOWN = 6
PGUI_2NDBUTTON_UP = 7
PGUI_2NDBUTTON_CLCK = 8
PGUI_2NDBUTTON_DBLCLCK = 9
PGUI_2NDBUTTON_DRAG = 10
PGUI_2NDBUTTON_DROP = 11
PGUI_POINTER_MOVE = 12
PGUI_POINTER_HOVER = 13
PGUI_POINTER_LEAVE = 14
PGUI_POINTER_DRAG_HOVER = 15
PGUI_POINTER_DRAG_LEAVE = 16
PGUI_CHAR_PRESSED = 17
PGUI_KEY_PRESSED = 18
PGUI_VALUE_CHANGED = 19
PGUI_RELEASE_FOCUS = 20
PGUI_INITIALISATION = 21
PGUI_ANIMATION_FINISHED = 22
-- -------------------------------------------- PGUISelectionBox child types
PGUI_SB_GROUPED_FRAME = 0
PGUI_SB_UNGROUPED_FRAME = 1
PGUI_SB_DETAILED_FRAME = 2
PGUI_SB_HEALTH_TEXT = 3
PGUI_SB_HEALTH_BAR = 4
PGUI_SB_ARMOUR_TEXT = 5
PGUI_SB_ARMOUR_BAR = 6
PGUI_SB_DEFENCE_TEXT = 7
PGUI_SB_DEFENCE_BAR = 8
PGUI_SB_MORALE_TEXT = 9
PGUI_SB_MORALE_BAR = 10
PGUI_SB_CQB_TEXT = 11
PGUI_SB_CQB_BAR = 12
PGUI_SB_ACURACY_SOLDIER_TEXT = 13
PGUI_SB_ACURACY_SOLDIER_BAR = 14
PGUI_SB_VETERANCY_TEXT = 15
PGUI_SB_VETERANCY_BAR = 16
PGUI_SB_WEAPON_1ST = 17
PGUI_SB_WEAPON_2ND = 18
PGUI_SB_FIREPOWER_1ST = 19
PGUI_SB_FIREPOWER_2ND = 20
PGUI_SB_ACCURACY_1ST = 21
PGUI_SB_ACCURACY_2ND = 22
PGUI_SB_AMMORECYCLE_1ST_TEXT = 23
PGUI_SB_AMMORECYCLE_1ST_BAR = 24
PGUI_SB_AMMORECYCLE_2ND_TEXT = 25
PGUI_SB_AMMORECYCLE_2ND_BAR = 26
PGUI_SB_MAXSPEED_TEXT = 27
PGUI_SB_MAXSPEED_BAR = 28
PGUI_SB_SMALL_PCT = 29
PGUI_SB_BIG_PCT = 30
-- ---------------------------------------------------
CreateGUI("Menu");
id=GUIADDCONTROL {
Parent = 0,
Name = "Frame",
ControlType= ID_FRAME,
BoundRect = {0,0,1024,768},
-- Texture = "GUI/MenuFrame.dds",
Rec1STTexture = {0,0,1024,768},
MESSAGE_MAP = {
{PGUI_INITIALISATION , "INITMAINMENU"},
},
};
GUIADDCONTROL {
Parent = id,
Name = "Frame",
ControlType= ID_FRAME,
BoundRect = {0,0,1024,103},
Texture = "GUI/top_border.dds",
Rec1STTexture = {0,0,1024,103},
};
GUIADDCONTROL {
Parent = id,
Name = "Frame",
ControlType= ID_FRAME,
BoundRect = {0,768-128,1024,768},
Texture = "GUI/bottom_border.dds",
Rec1STTexture = {0,0,1024,128},
};
GUIADDCONTROL {
Parent = id,
Name = "PlayDemo",
ControlType= ID_BUTTON,
BoundRect = {33,65,141,94},
Texture = "GUI/top_border.dds",
Title = "Button 2",
Rec1STTexture = {33,65,141,94},
Rec2NDTexture = {33,103,142,132},
Rec3RDTexture = {33,65,141,94},
Rec4THTexture = {33,65,141,94},
MESSAGE_MAP = {
{PGUI_1STBUTTON_CLCK , "PLAYDEMO", 4, 31},
},
};
GUIADDCONTROL {
Parent = id,
Name = "Options",
ControlType= ID_BUTTON,
BoundRect = {289,65,398,94},
Texture = "GUI/top_border.dds",
Title = "Button 2",
Rec1STTexture = {289,65,398,94},
Rec2NDTexture = {289,103,397,132},
Rec3RDTexture = {289,65,398,94},
Rec4THTexture = {289,65,398,94},
MESSAGE_MAP = {
{PGUI_1STBUTTON_CLCK , "OPTIONS", 4, 24},
},
};
GUIADDCONTROL {
Parent = id,
Name = "Credits",
ControlType= ID_BUTTON,
BoundRect = {417,65,525,94},
Texture = "GUI/top_border.dds",
Title = "Button 2",
Rec1STTexture = {417,65,525,94},
Rec2NDTexture = {417,103,525,132},
Rec3RDTexture = {417,65,525,94},
Rec4THTexture = {417,65,525,94},
MESSAGE_MAP = {
{PGUI_1STBUTTON_CLCK, "CREDITS", 4, 46},
},
};
GUIADDCONTROL {
Parent = id,
Name = "Exit",
ControlType= ID_BUTTON,
BoundRect = {545,65,653,94},
Texture = "GUI/top_border.dds",
Title = "Button 2",
Rec1STTexture = {545,65,653,94},
Rec2NDTexture = {545,103,654,132},
Rec3RDTexture = {545,65,653,94},
Rec4THTexture = {545,65,653,94},
MESSAGE_MAP = {
{PGUI_1STBUTTON_CLCK , "QUITDEMO", 4, 18},
},
};
GUIADDCONTROL {
Parent = id,
Name = "MissionName",
ControlType = ID_TEXT_BOX,
Long1st = PGUI_SINGLELINE_TEXT,
BoundRect = {33,686,310,715},
--Texture = "GUI/bottom_border.dds",
Rec1STTexture = {0,0,1024,128},
Res2NDTexture = {0,0,1024,128},
FontColor = 4290494599,
FontHeight = 23,
FontWidth = 0,
MESSAGE_MAP = {
{PGUI_INITIALISATION , "INITPLAYERNAME2"},
},
};